package com.glsc.ngateway.common.base.domain.oracle.ecology;

import javax.persistence.*;


@Entity
@Table(name = "WORKFLOW_BILL", schema = "ECOLOGY_TARGET", catalog = "")
public class WorkflowBill {
    private Integer id;
    private Integer namelabel;
    private String tablename;
    private String createpage;
    private String managepage;
    private String viewpage;
    private String detailtablename;
    private String detailkeyfield;
    private String operationpage;
    private String hasfileup;
    private Integer invalid;
    private String formdes;
    private Integer subcompanyid;
    private Double dsporder;
    private Integer subcompanyid3;
    private String fromModule;
//    private List<WorkflowBillfield> workflowBillfields;


    @Id
    @Column(name = "ID")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAMELABEL")
    public Integer getNamelabel() {
        return namelabel;
    }

    public void setNamelabel(Integer namelabel) {
        this.namelabel = namelabel;
    }

    @Basic
    @Column(name = "TABLENAME", nullable = true, length = 480)
    public String getTablename() {
        return tablename;
    }

    public void setTablename(String tablename) {
        this.tablename = tablename;
    }

    @Basic
    @Column(name = "CREATEPAGE", nullable = true, length = 1000)
    public String getCreatepage() {
        return createpage;
    }

    public void setCreatepage(String createpage) {
        this.createpage = createpage;
    }

    @Basic
    @Column(name = "MANAGEPAGE", nullable = true, length = 1000)
    public String getManagepage() {
        return managepage;
    }

    public void setManagepage(String managepage) {
        this.managepage = managepage;
    }

    @Basic
    @Column(name = "VIEWPAGE", nullable = true, length = 1000)
    public String getViewpage() {
        return viewpage;
    }

    public void setViewpage(String viewpage) {
        this.viewpage = viewpage;
    }

    @Basic
    @Column(name = "DETAILTABLENAME", nullable = true, length = 480)
    public String getDetailtablename() {
        return detailtablename;
    }

    public void setDetailtablename(String detailtablename) {
        this.detailtablename = detailtablename;
    }

    @Basic
    @Column(name = "DETAILKEYFIELD", nullable = true, length = 480)
    public String getDetailkeyfield() {
        return detailkeyfield;
    }

    public void setDetailkeyfield(String detailkeyfield) {
        this.detailkeyfield = detailkeyfield;
    }

    @Basic
    @Column(name = "OPERATIONPAGE", nullable = true, length = 1000)
    public String getOperationpage() {
        return operationpage;
    }

    public void setOperationpage(String operationpage) {
        this.operationpage = operationpage;
    }

    @Basic
    @Column(name = "HASFILEUP", nullable = true, length = 1)
    public String getHasfileup() {
        return hasfileup;
    }

    public void setHasfileup(String hasfileup) {
        this.hasfileup = hasfileup;
    }

    @Basic
    @Column(name = "INVALID", nullable = true, precision = 0)
    public Integer getInvalid() {
        return invalid;
    }

    public void setInvalid(Integer invalid) {
        this.invalid = invalid;
    }

    @Basic
    @Column(name = "FORMDES", nullable = true, length = 1000)
    public String getFormdes() {
        return formdes;
    }

    public void setFormdes(String formdes) {
        this.formdes = formdes;
    }

    @Basic
    @Column(name = "SUBCOMPANYID", nullable = true, precision = 0)
    public Integer getSubcompanyid() {
        return subcompanyid;
    }

    public void setSubcompanyid(Integer subcompanyid) {
        this.subcompanyid = subcompanyid;
    }

    @Basic
    @Column(name = "DSPORDER", nullable = true, precision = 0)
    public Double getDsporder() {
        return dsporder;
    }

    public void setDsporder(Double dsporder) {
        this.dsporder = dsporder;
    }

    @Basic
    @Column(name = "SUBCOMPANYID3")
    public Integer getSubcompanyid3() {
        return subcompanyid3;
    }

    public void setSubcompanyid3(Integer subcompanyid3) {
        this.subcompanyid3 = subcompanyid3;
    }

    @Basic
    @Column(name = "FROM_MODULE_", nullable = true, length = 80)
    public String getFromModule() {
        return fromModule;
    }

    public void setFromModule(String fromModule) {
        this.fromModule = fromModule;
    }


//    @OneToMany(fetch=FetchType.EAGER)
//    @JoinColumn(name="BILLID")
//    @NotFound(action= NotFoundAction.IGNORE)
//    public List<WorkflowBillfield> getWorkflowBillfields() {
//        return workflowBillfields;
//    }
//
//    public void setWorkflowBillfields(List<WorkflowBillfield> workflowBillfields) {
//        this.workflowBillfields = workflowBillfields;
//    }


    @Override
    public String toString() {
        return "WorkflowBill{" +
                "id=" + id +
                ", namelabel=" + namelabel +
                ", tablename='" + tablename + '\'' +
                ", createpage='" + createpage + '\'' +
                ", managepage='" + managepage + '\'' +
                ", viewpage='" + viewpage + '\'' +
                ", detailtablename='" + detailtablename + '\'' +
                ", detailkeyfield='" + detailkeyfield + '\'' +
                ", operationpage='" + operationpage + '\'' +
                ", hasfileup='" + hasfileup + '\'' +
                ", invalid=" + invalid +
                ", formdes='" + formdes + '\'' +
                ", subcompanyid=" + subcompanyid +
                ", dsporder=" + dsporder +
                ", subcompanyid3=" + subcompanyid3 +
                ", fromModule='" + fromModule + '\'' +
                '}';
    }
}
